<!DOCTYPE HTML>
<html>
	<head>
	
	<?= $this->headMeta()."\n" ?>
	<?= $this->headTitle()."\n" ?>
	<?= $this->headLink()."\n" ?>
	<!--[if lte IE 6]>
		<link rel="stylesheet" type="text/css" href="/css/bootstrap-ie6.min.css">
	<![endif]-->
	<!--[if lte IE 7]>
		<link rel="stylesheet" type="text/css" href="bootstrap/css/ie6.css">
	<![endif]-->
	</head>
    <body>
        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="<?= $this->url(array('controller'=>'index'), null,true)?>" title="淘车乐·乐淘车">淘车乐</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
                            <!-- li class="<?php if ($this->url() == '/'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'index', 'action'=>'index'),null,true);?>" data-original-title="首页">首页</a></li-->
                            <li class="<?php if ($this->getcontroller == 'buy'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'buy', 'action'=>'index'),null,true);?>" title="我要买二手车车">我要买车</a></li>
                            <li class="<?php if ($this->getcontroller == 'sale'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'sale', 'action'=>'index'),null,true);?>" data-original-title="免费帮您卖车">我要卖车</a></li>
                            <!-- li class="<?php if ($this->getcontroller == 'financial'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'financial', 'action'=>'index'), null,true);?>" title="二手车按揭服务">我要按揭</a></li-->
                            <!-- li class="<?php if ($this->getcontroller == 'cars'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'cars', 'action'=>'index'), null,true);?>">车型大全</a></li-->
                            <!-- li class=""><a href="">新车资讯</a></li-->
                            <!-- li class=""><a href="">汽车问答</a></li-->
                            <!-- li class=""><a href="">汽车用品</a></li-->
                            <!-- li class="<?php if ($this->getcontroller == 'forum'): ?>active<?php endif;?>"><a href="<?= $this->url(array('controller'=>'forum', 'action'=>'index'), null,true);?>">车友社区</a></li-->
                        </ul>
                        <ul class="nav pull-right">


						<?php if ($this->member):?>
                          <!-- 昵称最长 10个大写西文 9个加... 14小写个西文 13个加... 7个中文  6个加... -->
                          <li class="dropdown">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#"><i class="icon-user icon-white"></i> <?= $this->member[username]?> <?php if ($this->member[is_msg]):?><span class="label label-important"><?= $this->member[is_msg]?></span><?php endif;?> <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li class="nav-header"><?= $this->member[value]?></li>
                                <!-- li><a href="<?= $this->url(array('controller'=>'home','action'=>'space','uid'=>$this->member[uid]),null,true)?>">我的空间</a></li-->
                                <li><a href="<?= $this->url(array('controller'=>'set'),null,true)?>">管理中心</a></li>
                                <li><a href="<?= $this->url(array('controller'=>'set','action'=>'msg'),null,true)?>">消息中心 <?php if ($this->member[is_msg]):?><span class="label label-important"><?= $this->member[is_msg]?></span><?php endif;?></a></li>
                                <li><a href="<?= $this->url(array('controller'=>'set','action'=>'favorites'),null,true)?>">我的收藏</a></li>
                                <li><a href="<?= $this->url(array('controller'=>'set','action'=>'sale'),null,true)?>">我的发布</a></li>
                                <li><a href="<?= $this->url(array('controller'=>'set','action'=>'profit'),null,true)?>">推广中心</a></li>
                                <li><a href="<?= $this->url(array('controller'=>'set','action'=>'profile'),null,true)?>">账号管理</a></li>
                                <li class="divider"></li>
                                <li><a href="javascript:;" data="/dialog/loginout/?ref=<?= $this->ref?>" id="showWindow">退出登陆</a></li>
                            </ul>
                          </li>
                        <?php else:?>
                            <?php if ($this->getcontroller == 'member'):?>
                            <?php else:?>
                            <li class=""><a href="javascript:;" data="<?= $this->url(array('controller'=>'dialog','action'=>'login','ref'=>$this->ref),null,true)?>" id="showWindow">登陆</a></li>
                            <li class=""><a href="<?= $this->url(array('controller'=>'member','action'=>'register','ref'=>$this->ref),null,true)?>">免费注册</a></li>
                            <?php endif;?>
                        <?php endif;?>
                        </ul>
                    </div>

                </div>
            </div>
        </div>
        <div id="ajax_loading" style="display:none;right:0;position:fixed;_position:absolute;color:#FFF;background-color:#FF0000;_float:right;top:40px;">&nbsp;&nbsp;加载中...&nbsp;</div>
